package com.vq3.digitalizationsoftwareintegrates.Service.Spot_Check.Impl;

import com.vq3.digitalizationsoftwareintegrates.Entity.Spot_Check.MongoDBEntity.MongoDB_S_C_WebSocketMessageEntity;
import com.vq3.digitalizationsoftwareintegrates.MongoDB.Spot_Check.MongoDB_S_C_Point_ContentDao;
import com.vq3.digitalizationsoftwareintegrates.MongoDB.Spot_Check.MongoDB_S_C_SaveDailyContextDao;
import com.vq3.digitalizationsoftwareintegrates.Service.Spot_Check.Spot_CheckExceptionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
// TODO: 2023/2/25 有时间单独给它开一个mongo空间
public class Spot_CheckExceptionServiceImpl implements Spot_CheckExceptionService {
    @Resource
    MongoDB_S_C_Point_ContentDao mongoDB_s_c_point_contentDao;
    @Resource
    MongoDB_S_C_SaveDailyContextDao mongoDB_s_c_saveDailyContextDao;

    @Override
    public boolean acceptWorkOrders(Integer uid, String scSailings, String date, String pointName) {
        return mongoDB_s_c_saveDailyContextDao.acceptWorkOrders(uid,scSailings,date,pointName);

    }

    @Override
    public boolean saveAcceptWorkOrders(MongoDB_S_C_WebSocketMessageEntity mongoDB_s_c_webSocketMessageEntity) {
        return mongoDB_s_c_point_contentDao.saveWebSocketMessage(mongoDB_s_c_webSocketMessageEntity);
    }

    @Override
    public boolean reviseStatusDetermine(String SCStatusSelect, String scSailings, Long date, String pointContent) {
        return mongoDB_s_c_saveDailyContextDao.reviseStatusDetermine(SCStatusSelect,scSailings,date,pointContent);
    }
}
